package com.luohai.stock.mapper;

import com.luohai.stock.pojo.entity.SysPermission;
import com.luohai.stock.pojo.entity.SysUser;
import com.luohai.stock.pojo.vo.SysUserVo;
import com.luohai.stock.pojo.vo.UsersPageVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
* @author acer
* @description 针对表【sys_user(用户表)】的数据库操作Mapper
* @createDate 2024-09-15 21:17:12
* @Entity com.luohai.stock.pojo.entity.SysUser
*/
public interface SysUserMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);
    SysUser findByUserName(@Param("name") String userName);

    List<SysPermission> getmenus(@Param("id") Long id);

    List<SysUserVo> getUsersPageVo(UsersPageVo usersPageVo);

    List<Map<String,String>> getUserCreateName(@Param("createIds") List<Long> createIds);

    List<Map<String,String>> getUserupdateName(@Param("updateIds") List<Long> updateIds);


    Integer deleteAllIds(@Param("ids") List<Long> userIds);
}
